﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyPhongGiam
{
    public partial class frmThongKe : Form
    {
        public frmThongKe()
        {
            InitializeComponent();
        }

        private void btnTim_Click(object sender, EventArgs e)
        {
            string extraHour = " 11:00:00 am";
            CultureInfo ci = new CultureInfo("en-US");
            string formatToDB = "dd/MM/yyyy h:mm:ss tt";

            DateTime batDau = DateTime.ParseExact(txtNgayBatDau.Text + extraHour, formatToDB, ci);
            DateTime ketThuc = DateTime.ParseExact(txtKetThuc.Text + extraHour, formatToDB, ci);
            frmThongKeTongHop thongke = new frmThongKeTongHop(batDau, ketThuc);
            thongke.Show();

        }
    }
}
